package com.yangquan.thread;

/**
 * ThreadDemo
 * @author yangquan
 * @date 2025/4/6
 * @apiNote
 */
public class ThreadDemo {

    public static void main(String[] args) {
        ThreadExample threadExample = new ThreadExample();
        threadExample.start();
    }

}


class ThreadExample extends Thread{

    @Override
    public void run() {
        System.out.println("子线程执行了。。。");
        System.out.println(Thread.currentThread().getName());
    }
}
